import Layout from '@/layout'

/* 政府部门路由模块 */
const govRouter = [
    /* 系统首页 */
    {
        path: '/manager',
        name: 'Manager',
        component: Layout,
        redirect: '/manager/index',
        meta: {
            title: '系统首页',
            icon: 'peoples',
            roles: ['GOV']
        },
        children: [{
            path: 'index',
            component: () => import('@/views/dashboard/index'),
            name: '/manager/index',
            meta: {
                title: '系统首页',
                icon: 'home',
            }
        }]
    },
    /* 金融风控分析 */
    {
        path: '/analysis',
        name: 'Analysis',
        component: Layout,
        redirect: '/analysis/basics',
        meta: {
            title: '金融风控分析',
            icon: 'home',
            roles: ['GOV']
        },
        children: [{
            path: 'basics',
            component: () => import('@/views/roles/admin/analysis/basics'),
            name: '/analysis/basics',
            meta: {
                title: '贷款基本面',
            }
        }, {
            path: 'badBasics',
            component: () => import('@/views/roles/admin/analysis/badBasics'),
            name: '/analysis/badBasics',
            meta: {
                title: '不良贷款风险',
            }
        }, {
            path: 'guarantee',
            component: () => import('@/views/roles/admin/analysis/guarantee'),
            name: '/analysis/guarantee',
            meta: {
                title: '融资担保',
            }
        }, {
            path: 'details',
            component: () => import('@/views/roles/admin/analysis/details'),
            name: '/analysis/details',
            meta: {
                title: '风控明细',
            }
        }]
    },
    /* 企业画像 */
    {
        path: '/portray',
        name: 'Portray',
        component: Layout,
        redirect: '/portray/index',
        meta: {
            title: '企业画像',
            icon: 'portrait',
            roles: ['GOV']
        },
        children: [{
            path: 'index',
            component: () => import('@/views/dashboard/portray'),
            name: '/portray/index',
            meta: {
                title: '画像查询',
            }
        }]
    },
    /* 企业评估 */
    {
        path: '/assess',
        name: 'Assess',
        component: Layout,
        redirect: '/assess/index',
        meta: {
            title: '企业评估',
            icon: 'portrait',
            roles: ['GOV']
        },
        children: [{
            path: 'index',
            component: () => import('@/views/dashboard/assess'),
            name: '/assess/index',
            meta: {
                title: '企业评估',
            }
        }]
    },
    /* 风险预警 */
    {
        path: '/credit',
        name: 'Credit',
        component: Layout,
        redirect: '/credit/extend_list',
        meta: {
            title: '风险预警',
            icon: 'credit',
            roles: ['GOV'],
        },
        children: [{
            path: 'extend_list',
            component: () => import('@/views/roles/editor/customer/credit'),
            name: '/credit/extend_list',
            meta: {
                title: '风险预警',
            }
        }]
    },
    /* 额度查询 */
    {
        path: '/limit',
        name: 'Limit',
        component: Layout,
        redirect: '/limit/credit_list',
        meta: {
            title: '额度查询',
            icon: 'limit',
            roles: ['GOV'],
        },
        children: [{
            path: 'credit_list',
            component: () => import('@/views/roles/editor/customer/limit'),
            name: '/limit/credit_list',
            meta: {
                title: '额度查询',
            }
        }],
    },
    //     {
    //     path: '/c_fxyj',
    //     name: 'CFxyj',
    //     component: Layout,
    //     redirect: '/c_fxyj/index',
    //     meta: {
    //         title: '风险预警',
    //         icon: 'order',
    //         roles: ['GOV'],
    //     },
    //     children: [{
    //         path: 'index',
    //         component: () => import('@/views/error-page/404'),
    //         name: '/c_fxyj/index',
    //         meta: {
    //             title: '风险预警',
    //         }
    //     }]
    // }, 
]

export default govRouter
